package top.kaoshanji.p2ch21a;

import top.kaoshanji.p2ch21a.support.Student;

/**
 * 代码清单-p2ch21a-559页a：SimpleMapper的使用
 * author kaoshanji
 * ^_^
 * create time 2025/2/28 17:44
 */
public class SimpleMapperDemo {

    public static void main(String[] args) {

        Student zhangsan = new Student("张三", 18, 89d);
        String str = SimpleMapper.toString(zhangsan);

        Student zhangsan2 = (Student)SimpleMapper.fromString(str);

        System.out.println(zhangsan2);

    }


}
